package com.jnshu.pojo;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

public class ZuulRole implements Serializable{
    private static final long serialVersionUID = -2463385631204087188L;
    private Long id;

    private String roleName;

    private String permission;

    private List permissionList;

    public List getPermissionList() {
        return Arrays.asList(this.permission.trim().split(","));
    }

    public void setPermissionList(List permissionList) {
        this.permissionList = permissionList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getManageName() {
        return roleName;
    }

    public void setManageName(String roleName) {
        this.roleName = roleName;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
}